package com.team6.cet.controller.url;

import java.io.File;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
@Api(tags = "前端url")
@Validated
@Controller
/**
 * 页面跳转的所有url*/
public class CetUrl {
	
	 @Value("${web.upload-path}")
	/**
	 * 文件路径*/
	 private String uploadPath;
	@GetMapping("/main")
    /**登录后主页面*/
    public String home(Model model) {    
        return "/main";
    }
	
 	@GetMapping("/add")
    /**注册、添加用户页面*/
 	public String add() {	 
        return "/admin/add";
    }
 	
 	@GetMapping("/tologin")
    /**登录页面*/
 	public String login() {	 
        return "/admin/login";
    }
 	
 	@GetMapping("/adminmain")
    /**管理员页面*/
 	public String adminmain() {
 		 
        return "/admin/adminmain";
    }
 	@GetMapping("/exam")
 	public String exam()
 	{
 		return "/exam/main";
 	}
 	@GetMapping("/examinee")
 	public String examineeinfo()
 	{
 		return "/examineeinfo/main";
 	}
	@GetMapping("/user")
 	public String user()
 	{
 		return "/userenrollment/main";
 	}
	@GetMapping("/cethome")
	public String cethome()
	{
		return "/cethome";
	}
	@GetMapping("/time")
	public String time()
	{
		return "/time";
	}
	@GetMapping("/umain")
	public String umain()
	{
		return "/umain";
	}
	@GetMapping("/tips")
	public String tips()
	{
		return "/tips";
	}
	@GetMapping("/ulogin")
	public String ulogin()
	{
		return "/ulogin";
	}
	@GetMapping("/register")
	public String register()
	{
		return "/register";
	}
	@GetMapping("/about")
	public String about()
	{
		return "/about";
	}
	@GetMapping("/cettime")
	public String cettime()
	{
		return "/cettime";
	}
	@GetMapping("/problems")
	public String problems()
	{
		return "/problems";
	}
	@GetMapping("/home")
	public String home()
	{
		return "/home";
	}
	@GetMapping("/addinfo")
	public String addinfo()
	{
		return "/addinfo";
	}
}
